import { RequestMethod } from "./request.common.enum";

export interface MiddlewareConsumer {
  //应用多个中间件
  apply(...middleware: Function[]): this;
  //配置中间价路有对象
  forRoutes(...routes: Array<string | { path: string; method: RequestMethod }>);
  exclude(...routes: Array<string | { path: string; method: RequestMethod }>);
}
